from django.conf.urls.defaults import *

urlpatterns = patterns('homebase.projects.views',
        (r'^$', 'index'),
	(r'^all/$', 'view_all'),
	(r'^add/$', 'add'), 
	(r'^add/commit/$', 'commit_new'), 
	(r'^settings/$', 'settings'), 
	
        (r'^(?P<project_id>\d+)/$', 'detail'),
	(r'^(?P<project_id>\d+)/commit/$', 'commit_edit'),
	(r'^(?P<project_id>\d+)/complete/$', 'project_complete'),
	 
	(r'^(?P<project_id>\d+)/generic/add/$', 'generic_add'),
	(r'^(?P<project_id>\d+)/generic/(?P<generic_id>\d+)/commit/$', 'generic_commit'),
	
        (r'^(?P<project_id>\d+)/todo/$', 'todo'),
	(r'^(?P<project_id>\d+)/todo/add/commit/$', 'todo_commit'),
	(r'^(?P<project_id>\d+)/todo/all/$', 'todo_all'),
	(r'^(?P<project_id>\d+)/todo/(?P<todo_id>\d+)/complete/$', 'todo_complete'),
	(r'^(?P<project_id>\d+)/todo/(?P<todo_id>\d+)/uncomplete/$', 'todo_uncomplete'),	
)